package com.jenings.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("sp")
public class Shopping {
    @TableId(value = "sp_id",type = IdType.AUTO)
    private Integer spId;
    private String spName;
    private String spImg;
    private Double spPrice;
    private int spKcl;
    private Integer dpId;
    private Integer flId;
    private Integer spZt;

    public Integer getSpId() {
        return spId;
    }

    public void setSpId(Integer spId) {
        this.spId = spId;
    }

    public String getSpName() {
        return spName;
    }

    public void setSpName(String spName) {
        this.spName = spName;
    }

    public String getSpImg() {
        return spImg;
    }

    public void setSpImg(String spImg) {
        this.spImg = spImg;
    }

    public Double getSpPrice() {
        return spPrice;
    }

    public void setSpPrice(Double spPrice) {
        this.spPrice = spPrice;
    }

    public int getSpKcl() {
        return spKcl;
    }

    public void setSpKcl(int spKcl) {
        this.spKcl = spKcl;
    }

    public Integer getDpId() {
        return dpId;
    }

    public void setDpId(Integer dpId) {
        this.dpId = dpId;
    }

    public Integer getFlId() {
        return flId;
    }

    public void setFlId(Integer flId) {
        this.flId = flId;
    }

    public Integer getSpZt() {
        return spZt;
    }

    public void setSpZt(Integer spZt) {
        this.spZt = spZt;
    }

    @Override
    public String toString() {
        return "Shopping{" +
                "spId=" + spId +
                ", spName='" + spName + '\'' +
                ", spImg='" + spImg + '\'' +
                ", spPrice=" + spPrice +
                ", spKcl=" + spKcl +
                ", dpId=" + dpId +
                ", flId=" + flId +
                ", spZt=" + spZt +
                '}';
    }
}
